﻿using mak_bll;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace markets
{
    public partial class upyuan : Form
    {
       

        public upyuan()
        {
            InitializeComponent();
        }
        private   int adminid;
        public    upyuan(int adminid)
        {
            // TODO: Complete member initialization
            this.adminid = adminid;
        }
        

        private void button2_Click(object sender, EventArgs e)
        {
            
            //luoji lj = new luoji();
            //string AdminName=textBox3.Text;
            //string AdminPass = textBox2.Text;
            //string AdminPass1 = textBox1.Text;
            //int AdminRole=Convert.ToInt32(textBox4.Text);
            //int AdminStatus=Convert.ToInt32(textBox5.Text);
            
            //if (AdminPass != AdminPass1) { MessageBox.Show("两次密码不一致"); }
            //else
            //{
            //    int a = lj.updateyh(AdminName, AdminPass, AdminRole, AdminStatus, adminid);
            //    if (a != 1) { MessageBox.Show("更新失败"); }
            //    else { MessageBox.Show("更新成功"); }
            //}
           
        }
    }
}
